<?php

namespace app\api\controller\v1;

use app\common\controller\Api;
use think\Db;

/**
 * 文章模块
 */
class Article extends Api
{
    protected $noNeedRight = ['aboutus'];
    protected $noNeedLogin = '*';


    public function _initialize()
    {
        parent::_initialize();
    }



    /**web页面*/
    public function aboutus() {

        $article = Db::name('article')->where(['id' => 1])->find();

        return view('v1_web/web',['content'=>$article['content']]);
    }



}
